.class Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$1;
.super Lcom/nostra13/universalimageloader/core/listener/SimpleImageLoadingListener;
.source "DetailExpandableAdapter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;->initChildView(Lcom/brixd/niceapp/model/DetailModel;Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$ViewHolder;I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;

.field final synthetic val$holder:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$ViewHolder;

.field final synthetic val$margin:I


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$ViewHolder;I)V
    .registers 4
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;

    .prologue
    .line 325
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$1;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$1;->val$holder:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$ViewHolder;

    iput p3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$1;->val$margin:I

    invoke-direct {p0}, Lcom/nostra13/universalimageloader/core/listener/SimpleImageLoadingListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onLoadingComplete(Ljava/lang/String;Landroid/view/View;Landroid/graphics/Bitmap;)V
    .registers 12
    .param p1, "arg0"    # Ljava/lang/String;
    .param p2, "arg1"    # Landroid/view/View;
    .param p3, "arg2"    # Landroid/graphics/Bitmap;

    .prologue
    .line 329
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$1;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;->metrics:Landroid/util/DisplayMetrics;
    invoke-static {v4}, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;->access$000(Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;)Landroid/util/DisplayMetrics;

    move-result-object v4

    iget v3, v4, Landroid/util/DisplayMetrics;->widthPixels:I

    .line 332
    .local v3, "screenWidth":I
    int-to-double v4, v3

    const-wide v6, 0x3fe999999999999aL

    mul-double/2addr v4, v6

    double-to-int v1, v4

    .line 333
    .local v1, "imageWidth":I
    int-to-float v4, v1

    invoke-virtual {p3}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v5

    int-to-float v5, v5

    div-float/2addr v4, v5

    invoke-virtual {p3}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v5

    int-to-float v5, v5

    mul-float/2addr v4, v5

    float-to-int v0, v4

    .line 335
    .local v0, "imageHeight":I
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$1;->val$holder:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$ViewHolder;

    iget-object v4, v4, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$ViewHolder;->img:Landroid/widget/ImageView;

    invoke-virtual {v4}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v2

    check-cast v2, Landroid/widget/FrameLayout$LayoutParams;

    .line 336
    .local v2, "params":Landroid/widget/FrameLayout$LayoutParams;
    iput v1, v2, Landroid/widget/FrameLayout$LayoutParams;->width:I

    .line 337
    iput v0, v2, Landroid/widget/FrameLayout$LayoutParams;->height:I

    .line 338
    iget v4, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$1;->val$margin:I

    iput v4, v2, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    .line 339
    iget v4, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$1;->val$margin:I

    iput v4, v2, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I

    .line 340
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$1;->val$holder:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$ViewHolder;

    iget-object v4, v4, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$ViewHolder;->img:Landroid/widget/ImageView;

    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setAdjustViewBounds(Z)V

    .line 341
    return-void
.end method
